<?php
$tbSiteInfo = new Model_DbTable_SiteInfo();
$siteInfo = $tbSiteInfo->fetchRow(array('status =?' => $tbSiteInfo::STATUS_ACTIVE));


$category = $this->category_all;
?>

<!-- FOOTER CONTAINER -->

<div class="footer-top">
    <h2 class="big-title">Ohnew</h2>

    <!-- LINK FACEBOOK TWITTER O DAY -->
    <div class="social-link">
        <a class="share yahoo" href="<?= $siteInfo['twitter_link'] ?>"></a>
        <a class="share twitter" href="<?= $siteInfo['twitter_link'] ?>"></a>
        <a class="share facebook" href="<?= $siteInfo['facebook_link'] ?>"></a>
        <a class="share google" href="<?= $siteInfo['twitter_link'] ?>"></a>
    </div>
</div>

<div class="line"></div>

<div class="content-wrapper">
    <div class="footer-column" style="width:28%">
        <h3 class="title">Về Chúng Tôi</h3>
        <ul>
            <li>
                <span><a href="/bai-viet/gioi-thieu-<?= Model_DbTable_Article::TYPE_ABOUT ?>.html">Giới thiệu</a></span>
            </li>
            <li>
                <span><a href="/bai-viet/he-thong-cua-hang-<?= Model_DbTable_Article::TYPE_SYSTEM_SHOP ?>.html">Hệ thống cửa hàng</a></span>
            </li>
            <li>
                <span><a href="/bai-viet/dich-vu-<?= Model_DbTable_Article::TYPE_SERVICE ?>.html">Dịch vụ</a></span>
            </li>
            <li>
                <span><a href="/bai-viet/tuyen-dung-<?= Model_DbTable_Article::TYPE_CAREER ?>.html">Tuyển dụng</a></span>
            </li>
            <li>
                <span><a href="/lien-he.html">Liên hệ</a></span>
            </li>
        </ul>
    </div>
    <div class="footer-column" style="width:27%">
        <h3 class="title">Sản Phẩm</h3>
        <?php if($category): ?>
        <ul>
        	<?php foreach($category as $value): ?>
            <li>
                <span><a href="/san-pham/<?php echo $this->routeUrl($value['title']) . '-' . $value['id'] .'.html' ?>"><?php echo $value['title'] ?></a></span>
            </li>
            <?php endforeach; ?>
            <li>
            	<span><a href="/khuyen-mai.html">Khuyến mại</a></span>
            </li>
        </ul>
        <?php endif; ?>
    </div>
    <div class="footer-column" style="width:45%">
        <h3 class="title">Liên Hệ</h3>
        <ul>
            <li>
                <img style="vertical-align:initial" src="/resources/front-end/img/location.png">
                <span style="margin-left:8px"><b>Địa chỉ: </b> <?= $siteInfo['address'] ?> </span>
            </li>
            <li>
                <img style="vertical-align:initial" src="/resources/front-end/img/phone.png">
                <span style="margin-left:2px"><b>Điện thoại: </b> <?= $siteInfo['tel'] ?> </span>
            </li>
            <li>
                <img style="vertical-align:initial" src="/resources/front-end/img/phone.png">
                <span style="margin-left:2px"><b>Hotline: </b> <?= $siteInfo['hotline'] ?> </span>
            </li>
            <li>
                <img style="vertical-align:initial" src="/resources/front-end/img/email.png">
                <span><b>Email: </b><a href="mailto: contract@ohnew.com.vn" style="color: inherit;"> <?= $siteInfo['email_contact'] ?></a></span>
            </li>
        </ul>
    </div>
</div>

<div class="clear"></div>
<div class="line" style="margin-top:30px"></div>

<div class="copyright">© 2012. All right reserved.</div>
